package com.wchat.serviceimpl;

import com.wchat.dataobject.SellerInfo;
import com.wchat.repository.SellerInfoRepository;
import com.wchat.service.SellerInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by yangtianrui on 17/8/29.
 */
@Service
@Slf4j
public class SellerInfoServiceImpl implements SellerInfoService{
    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findByOpenid(String openid) {
        return sellerInfoRepository.findByOpenid(openid);
    }
}
